/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:lmrp-api
 * Create Time: 2016年1月28日 下午12:59:13
 */
package com.lenovo.lmrp.api.model.view;

import java.util.List;
import java.util.Objects;

/**
 * @author zhangzhenga
 *
 */
public class SearchListFilter {
    
    private String engineer;
    private int page;
    private int limit;
    private String timeRange;
    private int status;
    private String project;
    private String sort;
    private String includes;
    private List<CoordinateVO> rectangle;
    private Double[] betweenLng = new Double[2];//地图坐标的经度范围
    private Double[] betweenlat = new Double[2];//地图坐标的纬度范围
    
    
    public int getLimit() {
        return limit;
    }
    public void setLimit(int limit) {
        this.limit = limit;
    }
    public String getTimeRange() {
        return timeRange;
    }
    public void setTimeRange(String timeRange) {
        this.timeRange = timeRange;
    }
    public int getStatus() {
        return status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
    public String getProject() {
        return project;
    }
    public void setProject(String project) {
        this.project = project;
    }
    public String getSort() {
        return sort;
    }
    public void setSort(String sort) {
        this.sort = sort;
    }
    public String getIncludes() {
        return includes;
    }
    public void setIncludes(String includes) {
        this.includes = includes;
    }
    public List<CoordinateVO> getRectangle() {
        return rectangle;
    }
    public void setRectangle(List<CoordinateVO> rectangle) {
        this.rectangle = rectangle;
        if(!Objects.isNull(rectangle) && rectangle.size() > 0){
            this.betweenlat[0] = rectangle.get(2).getLatitude();
            this.betweenlat[1] = rectangle.get(0).getLatitude();
            this.betweenLng[0] = rectangle.get(3).getLongitude();
            this.betweenLng[1] = rectangle.get(1).getLongitude();
        }
    }
    public Double[] getBetweenLng() {
        return betweenLng;
    }
    public Double[] getBetweenlat() {
        return betweenlat;
    }
    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    public String getEngineer() {
        return engineer;
    }
    public void setEngineer(String engineer) {
        this.engineer = engineer;
    }
}
